using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ThemeOpLog : GeneratedMessageLite<ThemeOpLog, ThemeOpLog.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ThemeOpLog, ThemeOpLog.Builder>
		{
			private bool resultIsReadOnly;
			private ThemeOpLog result;
			protected override ThemeOpLog.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ThemeOpLog MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ThemeOpLog DefaultInstanceForType
			{
				get
				{
					return ThemeOpLog.DefaultInstance;
				}
			}
			public uint Key
			{
				get
				{
					return this.result.Key;
				}
				set
				{
					this.SetKey(value);
				}
			}
			public string Value
			{
				get
				{
					return this.result.Value;
				}
				set
				{
					this.SetValue(value);
				}
			}
			public Builder()
			{
				this.result = ThemeOpLog.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ThemeOpLog cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ThemeOpLog PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ThemeOpLog other = this.result;
					this.result = new ThemeOpLog();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ThemeOpLog.Builder Clear()
			{
				this.result = ThemeOpLog.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ThemeOpLog.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ThemeOpLog.Builder(this.result);
				}
				return new ThemeOpLog.Builder().MergeFrom(this.result);
			}
			public override ThemeOpLog BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ThemeOpLog.Builder MergeFrom(IMessageLite other)
			{
				if (other is ThemeOpLog)
				{
					return this.MergeFrom((ThemeOpLog)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ThemeOpLog.Builder MergeFrom(ThemeOpLog other)
			{
				return this;
			}
			public override ThemeOpLog.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ThemeOpLog.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ThemeOpLog._themeOpLogFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ThemeOpLog._themeOpLogFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 8u)
					{
						if (num3 != 18u)
						{
							if (WireFormat.IsEndGroupTag(num))
							{
								return this;
							}
							this.ParseUnknownField(input, extensionRegistry, num, text);
						}
						else
						{
							this.result.hasValue = input.ReadString(ref this.result.value_);
						}
					}
					else
					{
						this.result.hasKey = input.ReadUInt32(ref this.result.key_);
					}
				}
				return this;
			}
			public ThemeOpLog.Builder SetKey(uint value)
			{
				this.PrepareBuilder();
				this.result.hasKey = true;
				this.result.key_ = value;
				return this;
			}
			public ThemeOpLog.Builder ClearKey()
			{
				this.PrepareBuilder();
				this.result.hasKey = false;
				this.result.key_ = 0u;
				return this;
			}
			public ThemeOpLog.Builder SetValue(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasValue = true;
				this.result.value_ = value;
				return this;
			}
			public ThemeOpLog.Builder ClearValue()
			{
				this.PrepareBuilder();
				this.result.hasValue = false;
				this.result.value_ = "";
				return this;
			}
		}
		public const int KeyFieldNumber = 1;
		public const int ValueFieldNumber = 2;
		private static readonly ThemeOpLog defaultInstance;
		private static readonly string[] _themeOpLogFieldNames;
		private static readonly uint[] _themeOpLogFieldTags;
		private bool hasKey;
		private uint key_;
		private bool hasValue;
		private string value_ = "";
		private int memoizedSerializedSize = -1;
		public static ThemeOpLog DefaultInstance
		{
			get
			{
				return ThemeOpLog.defaultInstance;
			}
		}
		public override ThemeOpLog DefaultInstanceForType
		{
			get
			{
				return ThemeOpLog.DefaultInstance;
			}
		}
		protected override ThemeOpLog ThisMessage
		{
			get
			{
				return this;
			}
		}
		public uint Key
		{
			get
			{
				return this.key_;
			}
		}
		public string Value
		{
			get
			{
				return this.value_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasKey;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasKey)
				{
					num += CodedOutputStream.ComputeUInt32Size(1, this.Key);
				}
				if (this.hasValue)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.Value);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ThemeOpLog()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] themeOpLogFieldNames = ThemeOpLog._themeOpLogFieldNames;
			if (this.hasKey)
			{
				output.WriteUInt32(1, themeOpLogFieldNames[0], this.Key);
			}
			if (this.hasValue)
			{
				output.WriteString(2, themeOpLogFieldNames[1], this.Value);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasKey)
			{
				num ^= this.key_.GetHashCode();
			}
			if (this.hasValue)
			{
				num ^= this.value_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			ThemeOpLog themeOpLog = value as ThemeOpLog;
			return themeOpLog != null && (this.hasKey == themeOpLog.hasKey && (!this.hasKey || this.key_.Equals(themeOpLog.key_))) && (this.hasValue == themeOpLog.hasValue && (!this.hasValue || this.value_.Equals(themeOpLog.value_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ThemeOpLog, ThemeOpLog.Builder>.PrintField("Key", this.hasKey, this.key_, writer);
			GeneratedMessageLite<ThemeOpLog, ThemeOpLog.Builder>.PrintField("Value", this.hasValue, this.value_, writer);
		}
		public static ThemeOpLog ParseFrom(byte[] data)
		{
			return ThemeOpLog.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ThemeOpLog MakeReadOnly()
		{
			return this;
		}
		public static ThemeOpLog.Builder CreateBuilder()
		{
			return new ThemeOpLog.Builder();
		}
		public override ThemeOpLog.Builder ToBuilder()
		{
			return ThemeOpLog.CreateBuilder(this);
		}
		public override ThemeOpLog.Builder CreateBuilderForType()
		{
			return new ThemeOpLog.Builder();
		}
		public static ThemeOpLog.Builder CreateBuilder(ThemeOpLog prototype)
		{
			return new ThemeOpLog.Builder(prototype);
		}
		static ThemeOpLog()
		{
			ThemeOpLog.defaultInstance = new ThemeOpLog().MakeReadOnly();
			ThemeOpLog._themeOpLogFieldNames = new string[]
			{
				"Key",
				"Value"
			};
			ThemeOpLog._themeOpLogFieldTags = new uint[]
			{
				8u,
				18u
			};
			object.ReferenceEquals(micromsg.Proto.ThemeOpLog.Descriptor, null);
		}
	}
}
